local assets = {

}

local NODE_TYPE =
{
	Default = 0, 
	Blank = 1, 
	Background = 2, 
	Random = 3, 
	Blocker = 4, 
	Room = 5,
}

local list = {
	background = "sign",
	blocker = "chestershadow",
	START = "pighouse",
	[3] = "backpack",
	[4] = "icebox",
	Scary_Trees = "icebox",
}

local function SetType(inst, i)
	-- if list[i] == nil then
		-- print(i)
	-- end
	inst.MiniMapEntity:SetIcon((list[i] or "backpack")..".png")
	inst.Label:SetText(i)
end

local fn = function()
	local inst = CreateEntity()
	inst.entity:AddTransform()

	inst.entity:AddLabel()
	inst.Label:SetFontSize(30)
    inst.Label:SetFont(DEFAULTFONT)
    inst.Label:SetPos(0,0,0)
    inst.Label:SetColour(.73, .05, .02)
    inst.Label:Enable(true)

	local minimap = inst.entity:AddMiniMapEntity()
	minimap:SetIcon( "sign.png" )
    
	local anim = inst.entity:AddAnimState()
    anim:SetBank("sign_home")
    anim:SetBuild("sign_home")
    anim:PlayAnimation("idle")

    inst.SetType = SetType

    inst:DoTaskInTime(0, inst.Remove)

	return inst
end

return Prefab("node_mark", fn, assets)